//
//  MBProgressHUD+YYR.h
//  SISSAPP
//
//  Created by 优房网 on 2017/6/29.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import <MBProgressHUD/MBProgressHUD.h>

@interface MBProgressHUD (YYR)

//+ (void)showSuccess:(NSString *)success toView:(UIView *)view;
//
//+ (void)showError:(NSString *)error toView:(UIView *)view;

+ (void)showSuccess:(NSString *)success toView:(UIView *)view afterDelay:(NSInteger)delay;

+ (void)showError:(NSString *)error toView:(UIView *)view afterDelay:(NSInteger)delay;

+ (void)showCustom:(NSString *)text view:(UIView *)view;

//+ (MBProgressHUD *)showMessage:(NSString *)message toView:(UIView *)view;
//
//+ (void)showSuccess:(NSString *)success;
//
//+ (void)showError:(NSString *)error;
//
//+ (MBProgressHUD *)showMessage:(NSString *)message;
//
//+ (void)hideHUDForView:(UIView *)view;

//+ (void)hideHUD;

+ (void)YYR_ShowHUD:(BOOL)animation;
+ (void)YYR_HideHUD:(BOOL)animation;

+ (void)YYR_ShowHUD:(UIView *)toView animation:(BOOL)animation;

+ (void)YYR_HideHUD:(UIView *)toView animation:(BOOL)animation;

+ (void)YYR_ShowSuccess:(NSString *)success toView:(UIView *)view;
+ (void)YYR_ShowError:(NSString *)error toView:(UIView *)view;

+ (MBProgressHUD *)YYR_ShowMessage:(NSString *)message toView:(UIView *)view;


+ (void)YYR_ShowSuccess:(NSString *)success;
+ (void)YYR_ShowError:(NSString *)error;
+ (void)YYR_ShowError:(NSString *)error time:(int) time;

+ (MBProgressHUD *)YYR_ShowMessage:(NSString *)message;

+ (void)YYR_HideHUDForView:(UIView *)view;
+ (void)YYR_HideHUD;

// 显示自定义动画(自定义动画序列帧  找UI做就可以了)
+ (void)YYR_ShowCustomAnimation:(NSString *)msg withImgArry:(NSArray *)imgArry inview:(UIView *)view;

@end
